package com.zx.scp.service;

import com.zx.mobile.MobileCommonHelper;
import com.zx.scp.service.model.ImageSettleResponse;
import com.zx.scp.utils.PropertyUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * 图片处理
 */
public class ImageCommonHelper {
    /**
     * 图片处理
     *
     * @param imgInfo
     * @return
     */
    public static ImageSettleResponse getImageResponse(String imgInfo,String imgKey) {
        // 传递订单号及订单金额
        String requestUrl = PropertyUtil.getValue("imageSettleAddress");
        //传递文件信息
        Map params = new HashMap();
        params.put("imgInfo", imgInfo);
        params.put("fileKey", imgKey);
        return MobileCommonHelper.httpRequest(ImageSettleResponse.class, requestUrl, params);
    }
}
